//
// Created by 215609 on 2024/8/7.
//

#ifndef TSAVPLAYER_DECODER_H
#define TSAVPLAYER_DECODER_H

typedef void (*MessageCallback)(void*, int, float);
typedef long (*AVSyncCallback)(void*);

 class Decoder{
     virtual void Start() = 0;
//    virtual void Pause() = 0;
      virtual void Stop() = 0;
//    virtual float GetDuration() = 0;
//    virtual void SeekToPosition(float position) = 0;
//    virtual float GetCurrentPosition() = 0;
    virtual void SetMessageCallback(void* context, MessageCallback callback) = 0;

};
#endif //TSAVPLAYER_DECODER_H
